package com.charlotte.study.gupao.observer.guava.gper;

import com.google.common.eventbus.EventBus;

/**
 * @author junjie.ding
 * @date 2020/3/25
 */
public class Test {

    public static void main(String[] args) {
        Teacher tom = new Tom();
        Teacher mic = new Mic();
        EventBus bus = new EventBus();
        bus.register(tom);
        bus.register(mic);
        bus.post(new Question("问题标题", "问题内容", "jerry", tom));
    }
}
